package demo1;

public class Text {

    public static void main(String[] args) {

        Animal animal = new Dog("旺财",10,"1");

        animal.eat();

    }



    public static void main1(String[] args) {
        Dog dog = new Dog("旺财",10,"1");

        System.out.println("===========");
        dog.eat('a');

        System.out.println("===========");

        dog.textA();

    }
}
